<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>消息发送</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" th:href="@{/static/css/style.css}"/>

    <style type="text/css">
        table tr td {font-size:12px;}
        input, textarea {font-size: 12px; }
     </style>
    <script type="javascript">
        //var name = $('#username').val();

        console.log($('#username').val("admin"));
    </script>
</head>
<body>
    <div class="container">


        <!--<form th:action="@{/message/send}" method="post">-->
            <!--<table>-->
                <!--<tr>-->
                    <!--<td align="right">用户名:</td>-->
                    <!--<td><input th:id="username" name="username" type="text" style="width: 300px;"/></td>-->
                <!--</tr>-->
                <!--<tr>-->
                    <!--<td align="right">内容:</td>-->
                    <!--<td><textarea name="message" style="width: 300px;"></textarea></td>-->
                <!--</tr>-->
                <!--<tr>-->
                    <!--<td colspan="2" align="center" >-->
                        <!--<input type="submit" value="发送" /></td>-->
                <!--</tr>-->
            <!--</table>-->
        <!--</form>-->

        <div class="page-header">
            <h1>
                广告控制中心
            </h1>
        </div>
        <form th:action="@{/message/send}" method="post">
            <div class="form row"  th:style="' background: rgba(255,255,255,0.8);'" >
                <div class="form-horizontal col-md-offset-3" id="login_form"  >
                    <div class="col-md-9" >
                        <div class="form-group">
                            <i class="fa fa-user fa-lg"></i>
                            <input class="form-control required" type="text" placeholder="用户名" id="username" name="username" autofocus="autofocus" maxlength="20"/>
                        </div>
                        <div class="form-group">
                            <i class="fa fa-home fa-lg"></i>
                            <input class="form-control required" type="text" placeholder="内容" id="deviceid" name="message" />
                        </div>
                        <div class="form-group col-md-offset-9">
                            <button type="submit" class="btn btn-success pull-right" name="submit">发送</button>
                        </div>
                    </div>
                </div>
            </div>
        </form>

    </div>

</body>
</html>